import java.util.*;

public class main {

	static boolean time_format_24=true;
	
	private static String[] getTime() {
		
		Calendar calendar = new GregorianCalendar();
		String[] time = new String[11];
		
		time[0] = Integer.toString(calendar.get(Calendar.HOUR));
		time[1] = Integer.toString(calendar.get(Calendar.HOUR_OF_DAY));
		time[2] = Integer.toString(calendar.get(Calendar.MINUTE));
		time[3] = Integer.toString(calendar.get(Calendar.SECOND));
		time[4] = Integer.toString(calendar.get(Calendar.MILLISECOND));
		time[5] = Integer.toString(calendar.get(Calendar.DAY_OF_MONTH));
		time[6] = Integer.toString(calendar.get(Calendar.DAY_OF_WEEK));
		time[7] = Integer.toString(calendar.get(Calendar.WEEK_OF_YEAR));
		time[8] = Integer.toString(calendar.get(Calendar.MONTH));
		time[9] = Integer.toString(calendar.get(Calendar.YEAR));	
		time[10] = calendar.get(Calendar.AM_PM)== 0 ? "AM" : "PM";
		
		for(int i=0;i<9;i++) {
			if(Integer.parseInt(time[i])<9) {
				time[i] = '0' + time[i];
			}
		}
		
		return time;
	}
	
    public static void main(String[] args) {
    	try {
		
		String[] time = getTime();
		
		for(int i=0;i<10;i++)
			System.out.print(time[i]+" ");
	
    	} catch (Exception e) {
    		e.printStackTrace();
    	}
    }
}
